package com.jx.driving.transmission;

import com.jx.driving.domain.GnssPackage;
import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.BcdAnnotation;
import com.jx.driving.protocol.terminal.annotation.DwordAnnotation;
import com.jx.driving.protocol.terminal.annotation.LimitedStringAnnotation;
import com.jx.driving.protocol.terminal.annotation.ObjectAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;
import com.jx.driving.protocol.terminal.annotation.WordAnnotation;

/**
 * 上报学员登出
 * 
 * @author shenliuyang
 *
 *         2016年8月15日上午10:20:37
 */
@TerminalAnnotation
public class Terminal0x0202Transmission extends TimeTerminalTransmissionMessage {
    @LimitedStringAnnotation(value = 16, order = 1)
    private String userNo;// 学员编号
    @BcdAnnotation(value = 6, order = 2)
    private String time;// 登出时间
    @WordAnnotation(order = 3)
    private int totalTime;// 学员该次登录总时间
    @WordAnnotation(order = 4)
    private int totalMileage;// 学员该次登录总里程
    @DwordAnnotation(order = 5)
    private long classId;// 课堂 ID
    @ObjectAnnotation(order = 6)
    private GnssPackage gnssPackage;

    public String getUserNo() {
	return userNo;
    }

    public void setUserNo(String userNo) {
	this.userNo = userNo;
    }

    public String getTime() {
	return time;
    }

    public void setTime(String time) {
	this.time = time;
    }

    public int getTotalTime() {
	return totalTime;
    }

    public void setTotalTime(int totalTime) {
	this.totalTime = totalTime;
    }

    public int getTotalMileage() {
	return totalMileage;
    }

    public void setTotalMileage(int totalMileage) {
	this.totalMileage = totalMileage;
    }

    public long getClassId() {
	return classId;
    }

    public void setClassId(long classId) {
	this.classId = classId;
    }

    public GnssPackage getGnssPackage() {
	return gnssPackage;
    }

    public void setGnssPackage(GnssPackage gnssPackage) {
	this.gnssPackage = gnssPackage;
    }

    @Override
    public String toString() {
	StringBuilder builder = new StringBuilder();
	builder.append("Terminal0x0202Transmission [userNo=").append(userNo).append(", time=").append(time)
		.append(", totalTime=").append(totalTime).append(", totalMileage=").append(totalMileage)
		.append(", classId=").append(classId).append(", gnssPackage=").append(gnssPackage).append("]");
	return builder.toString();
    }

}
